package org.wendu.wdoa.dao;

import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.wendu.wdoa.model.User;

public interface PwdDao {

    @Select("select count(0) from t_user where u_id=#{u_id} and u_pwd=#{u_pwd}")
    int checkPwd(String u_id, String u_pwd);

    //在数据库中 u_pwd 和 u_id 为varchar字段
    @Update("update t_user set u_pwd=#{n_pwd} where u_id=#{u_id}")
    void updatePwd(User user);
}
